package com.competition.prediction.mapper;

import com.competition.prediction.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {

    int insertProduct(Product product);

    int updateProduct(Product product);

    int deleteProductById(Long id);

    Product selectProductById(Long id);

    List<Product> selectAllProducts();

    List<Product> selectAvailableProducts();

    int updateProductStock(Long id, Integer stock);
}